.home {
  $f: 19.2;

  .banner {
    position: relative;
    &::before{
      content:'';
      display: block;
      position: absolute;
      left: 0;
      top:0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .2);
    }
    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 33vh;
    }
    .text{
      position: absolute;
      left: 0;
      width: 100%;
      bottom:30/$f+vw;
      color:white;
      padding: 0 200/$f+vw;
      .p1{
        font-size: 30/$f+vw;
        font-weight: 600;
        line-height: 1;
      }
      .des{
        font-size: 20/$f+vw;
        margin-top: 20/$f+vw;
        line-height: 1.3;
        font-weight: 200;
      }
    }
  }

  .section {
    margin: 100/$f+vw 200/$f+vw 200/$f+vw 200/$f+vw;
    display: flex;
    justify-content: space-between;

    .l {
      width: 250/$f+vw;

      .recommend {
        .item {
          width: 100%;
          cursor: pointer;
          background: #FFF;
          transition: all 600ms;
          display: block;

          &:not(:last-child) {
            margin-bottom: 40/$f+vw;
          }

          .pic {
            overflow: hidden;

            img {
              width: 100%;
              display: block;
              object-fit: cover;
              transition: all 600ms;
              height: 249/$f+vw;
            }
          }

          .text {
            padding: 0 8/$f+vw;

            .pt {
              color: #000;
              font-size: 18/$f+vw;
              line-height: 1.55;
            }

            .time {
              color: rgba(102, 102, 102, 1);
              font-size: 13/$f+vw;
              line-height: 1;
              margin: 24/$f+vw 0 8/$f+vw 0;
            }
          }


          &:hover {
            box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);

            .pic {
              img {
                transform: scale(1.05);
              }
            }
          }
        }
      }
    }

    .r {
      width: 1160/$f+vw;

      .t {
        color: rgba(40, 40, 40, 1);
        font-size: 28/$f+vw;
        line-height: 1.25;
      }

      .t2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #EEE;
        padding: 22/$f+vw 0;

        .tags {
          display: flex;

          .tag {
            display: flex;
            align-items: center;
            font-size: 14/$f+vw;

            span {
              font-weight: 200;
              margin: 0 10/$f+vw;
            }
          }
        }
        .icons{
          display: flex;
          align-items: center;
          a{
            margin-left: 15/$f+vw;
            img{
              width: 20/$f+vw;
              display: block;
            }
          }
        }
      }

      .html {
        text-align: center;
        margin: 60/$f+vw 0;

        img {
          max-width: 100%;
          object-fit: contain;
        }
      }

      .pics {
        position: relative;
        width: 550/$f+vw;
        margin: 0 auto;

        .swiper1 {
          width: 100%;

          .item {
            text-align: center;

            .pic {
              overflow: hidden;

              img {
                width: 100%;
                display: block;
                object-fit: cover;
                height: 324/$f+vw;
                transition: all 600ms;
              }
            }

            p {
              color: #5F6368;
              line-height: 1.625;
              font-size: 14/$f+vw;
              margin-top: 15/$f+vw;
            }

            &:hover {
              .pic {
                img {
                  transform: scale(1.05);
                }
              }
            }
          }
        }

        .prev {
          position: absolute;
          left: -100/$f+vw;
          top: 45%;
          transform: translateY(-50%);
          width: 65/$f+vw;
          height: 65/$f+vw;
          border-radius: 32.5/$f+vw;
          background: #FFF;
          box-shadow: 0px 1px 2px 0px rgba(54, 64, 67, 0.30), 0px 1px 3px 1px rgba(54, 64, 67, 0.30);
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 10;
          cursor: pointer;

          svg {
            display: block;
            width: 36/$f+vw;
          }
        }

        .next {
          position: absolute;
          right: -100/$f+vw;
          top: 45%;
          transform: translateY(-50%);
          width: 65/$f+vw;
          height: 65/$f+vw;
          border-radius: 32.5/$f+vw;
          background: #FFF;
          box-shadow: 0px 1px 2px 0px rgba(54, 64, 67, 0.30), 0px 1px 3px 1px rgba(54, 64, 67, 0.30);
          display: flex;
          align-items: center;
          justify-content: center;
          z-index: 10;
          cursor: pointer;

          svg {
            display: block;
            width: 36/$f+vw;
          }
        }

        .swiper-pagination {
          position: static;
          margin-top: 30/$f+vw;
          width: 100%;
          display: flex;
          justify-content: center;

          .swiper-pagination-bullet {
            border-radius: 5/$f+vw;
            border: 2/$f+vw solid #FB0000;
            width: 10/$f+vw;
            height: 10/$f+vw;
            background: transparent;
            transition: all 600ms;
            opacity: 1;
            margin: 0 17/$f+vw;
          }
          .swiper-pagination-bullet-active{
            background: #FB0000;
          }
        }
      }

      .des {
        width: 740/$f+vw;
        margin: 60/$f+vw auto;
        font-size: 14/$f+vw;
        line-height: 2.23;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    .banner {
      img {
        height: 300px;
      }
      .text{
        padding: 0 5%;
        bottom: 20px;;
        .p1{
          font-size: 24px;
        }
        .des{
          font-size: 16px;
          margin-top: 10px;
        }
      }
    }
    .section{
      margin: 30px 5%;
      flex-direction: column-reverse;
      .r{
        width: 100%;
        .t{
          font-size: 18px;
          line-height: 1.5;
        }
        .t2{
          flex-direction: column;
          padding: 15px 0;
          .tags{
            flex-wrap: wrap;
            .tag{
              font-size: 14px;
              margin-bottom: 10px;
              span{
                margin: 0 10px;
              }
            }
          }
          .icons{
            width: 100%;
            margin-top: 10px;
            a{
              margin-right: 10px;
              margin-left: 0;
              img{
                width: 20px;
              }
            }
          }
        }
        .html{
          margin: 20px 0;
        }
        .des{
          font-size: 14px;
          width: 100%;
          line-height: 1.8;
        }
        .pics{
          width: 90%;
          .prev,.next{
            width: 35px;
            height: 35px;
            border-radius: 50%;
            svg{
              width: 20px;
            }
          }
          .swiper1{
             .item{
              .pic{
                img{
                  height: auto;
                }
              }
              p{
                font-size: 14px;
                margin-top: 10px;
              }
             }
          }
          .swiper-pagination{
            .swiper-pagination-bullet{
              width: 10px;
              height: 10px;
              border-radius: 50%;
            }
          }
        }
      }
      .l{
        width: 100%;
        margin-top: 30px;
        .recommend{
          .item{
            &:not(:last-child){
              margin-bottom: 20px;
            }
            .pic{
              margin-bottom: 10px;
              img{
                height: auto;
              }
            }
             .text{
              padding: 10px;
              .pt{
                font-size: 18px;
              }
              .time{
                font-size: 16px;
              } 
             }
          } 
        }
      }
    }
  }

}